From 848d696419eb2d13b7eaca4295f7711196fd1262 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Chlup?= Date: Thu, 27 Feb 2025 21:42:02 +0100 Subject: [PATCH] proxy: fix indentation warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes the following warning caused by a bad indentation: src/proxy.c: In function ‘proxy_set’: src/proxy.c:161:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 161 | for (i = 0; i < downlinks_cnt && downlinks[i] == iface->iface->ifindex; ++i); | ^~~ src/proxy.c:162:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 162 | if (i == downlinks_cnt) | ^~ Signed-off-by: Vladimír Chlup Link: https://github.com/openwrt/omcproxy/pull/13 Signed-off-by: Álvaro Fernández Rojas --- src/proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proxy.c b/src/proxy.c index 8114763..80e7b58 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -159,8 +159,8 @@ int proxy_set(int uplink, const int downlinks[], size_t downlinks_cnt, enum prox size_t i; for (i = 0; i < downlinks_cnt && downlinks[i] == iface->iface->ifindex; ++i); - if (i == downlinks_cnt) - proxy_remove_downlink(container_of(iface, struct proxy_downlink, iface)); + if (i == downlinks_cnt) + proxy_remove_downlink(container_of(iface, struct proxy_downlink, iface)); } for (size_t i = 0; i < downlinks_cnt; ++i) { -- 2.30.2